<template>
  <div class="header" style="clear:both;">
    <ul>
      <li class="logo" style="width:32px">
        <img :src="require('@/assets/images/back.png')" @click="backPage()" />
      </li>
      <li style="font-size:16px; padding-left:5px;color:#303133">{{pageTitle}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "indexHeader",
  data() {
    return {};
  },
  methods: {
    backPage() {
      this.$router.back()
    }
  },
  props: {
    pageTitle: String
  }
};
</script>

<style scoped>
.header {
  width: 100%;
  position: fixed;
  z-index: 10000;
  top: 0px;
  background-color: #ffffff;
}
ul {
  list-style: none;
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 40px;
  border-bottom: 1px solid #e9e9e9;
}
li {
  list-style: none;
  float: left;
  height: 40px;
  line-height: 40px;
  text-align: center;
  vertical-align: middle;
}
.logo {
  width: 32px;
  margin-left: auto;
  margin-right: auto;
}
.logo img {
  width: 16px;
  height: 16px;
  margin-top: 12px;
  cursor: pointer;
}
</style>